extends Node

class_name ModbusServer
var c_backend = load('res://simple.gdns').new()
var hold_register = 17 setget set_holding_register, get_holding_register #single for now
#var coils = [0,0,0,0]


func _init(address, port):
	c_backend.start_server(address, port)

func set_holding_register(value):
	c_backend.set_holding_register(value)

func get_holding_register():
	return c_backend.get_holding_register()

func get_coil():
	return c_backend.get_coil()
